"""
__author__ = '霍格沃兹测试开发学社'
__desc__ = '更多测试开发技术探讨，请访问：https://ceshiren.com/t/topic/15860'
"""
from selenium.webdriver.common.by import By

from web_practice.prepare.web_po.page.add_member_page import AddMemberPage
from web_practice.prepare.web_po.page.base_page import BasePage
from web_practice.prepare.web_po.utils.log_util import logger


class HomePage(BasePage):
    __BTN_ADD = (By.CSS_SELECTOR, ".ww_indexImg_AddMember")

    def click_addmember(self):
        # click 添加成员
        # 2. 点击添加成员按钮
        logger.info("点击添加成员按钮")
        self.do_find(self.__BTN_ADD).click()

        return AddMemberPage(self.driver)
